<h2>Why is this an issue?</h2>
<p>Calling <code>Environment.Exit(exitCode)</code> or <code>Application.Exit()</code> terminates the process and returns an exit code to the operating
system..</p>
<p>Each of these methods should be used with extreme care, and only when the intent is to stop the whole application.</p>
<h3>Noncompliant code example</h3>
<pre>
Environment.Exit(0);
Application.Exit();
</pre>
<h3>Exceptions</h3>
<p>These methods are ignored inside <code>Main</code>.</p>

